package it.polimi.traveldream.ejbclient.eaos;

import it.polimi.traveldream.ejbclient.dtos.ParticipationDTO;
import it.polimi.traveldream.utils.exceptions.NotAvailableException;
import it.polimi.traveldream.utils.exceptions.NotSuchProductException;
import it.polimi.traveldream.utils.exceptions.NotSuchUserException;

import java.util.List;

import javax.ejb.Local;

@Local
public interface ParticipationServiceEAO {
	public List<ParticipationDTO> getUserParticipations(int customerId, boolean overpast)
			throws NotSuchUserException;
	public List<ParticipationDTO> getParticipations(boolean overpast);
	public void confirmParticipation(int customerId, int packageId, int reservations)
			throws NotSuchUserException, NotAvailableException, NotSuchProductException;
	public List<ParticipationDTO> searchParticipations(int packageId, boolean overpast)
			throws NotSuchProductException;
}